{$CLEO .cs}
{$USE cleo+}
0000:

    model.Load(#M4)
    model.Load(#BALLAS1)
    load_requested_models 
           04C4: store_coords_to 4@ 5@ 6@ from_actor player1 with_offset 0.0 2.0 -1.0
    
    0@ = actor.Create(12, #BALLAS1, 4@, 5@, 6@  )
    actor.Health(0@)=5000
    actor.GiveWeaponAndAmmo(0@,m4,99999)
    0446: set_actor 0@ dismemberment_possible 0
    05DE: AS_actor 0@ walk_around_ped_path
    show_text_highpriority "Test AI Climber Created" 3000
    repeat
    wait 0
           04C4: store_coords_to 4@ 5@ 6@ from_actor 0@ with_offset 1.0 1.0 1.4
           04C4: store_coords_to 7@ 8@ 9@ from_actor 0@ with_offset -1.0 -0.1 2.4
           if and
           not is_char_using_gun 0@
           not is_char_fighting 0@ 
           0339:   anything_in_cube_cornerA 4@ 5@ 6@  cornerB  4@ 5@ 6@ solid 1 car 1 actor 0 object 1 particle 0
           then
                078F: AS_actor 0@ climb 1
    
           end
    until actor.Dead(0@)
    actor.RemoveReferences(0@)
0A93: terminate_this_custom_script